import client from 'board-game/client';

import game from './game.vue';
import introduction from './introduction.vue';
import result from './result.vue';

client({
    components: {
        game, introduction, result
    }
}, ({ app, set, append }) => ({
    canvas(canvas) {
        set(app.game, 'canvas', canvas);
    },
    lines(line) {
        append(app.game.canvas.lines, [ line ]);
    }
}));